
#include <sstream>
#include "parser.hpp"

using namespace std;

Result* Parser::parse(const TokenStream &ts) 
{
	ostringstream oss;

	oss << "Tokens:";
	for (TokenStreamConstIter it = ts.begin(); it != ts.end(); it++) {
		oss << endl << *it;
	}

	return new Message(oss.str());
}